How to disable drag and drop of text within the textarea? [migrated]

Posted by Manoj Agarwal on Programmers See other posts from Programmers or by Manoj Agarwal
Published on 2012-12-03T11:36:22Z Indexed on 2012/12/03 17:18 UTC
Read the original article Hit count: 233

Filed under:
|

I am working on UI Design, where I need to use Html textarea object. The sample code is:

<textarea rows="5" cols="60" spellcheck="false" style="font-size:12px; font-family: Verdana;">
Abc
Xyz
Mnp
Pqr
</textarea>

I don't want to disable the textarea, since there are some cross-browser issues. If I point on 'y' in 'xyz' and drag it after text 'Mnp', it will be shifted as 'Mnpyz'. I want to avoid this drag and drop feature of text within the text area.

© Programmers or respective owner

Related posts about html

Related posts about drag-and-drop